//
//  WLScoreFlowCell.m
//  WanLian
//
//  Created by muzhuang on 2018/10/11.
//  Copyright © 2018年 wanlian. All rights reserved.
//

#import "WLScoreFlowCell.h"

@implementation WLScoreFlowCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.contentView.backgroundColor = wlUIColorRGB(0xFAFAFA);
        _labTitle = [[UILabel alloc] initWithFrame:CGRectMake(WLScaleX(16), WLScaleX(10), 120, WLScaleX(20))];
        _labTitle.font = [WLCommonTool fontTypePingFangSCMedium:14];
        _labTitle.textColor = wlDarkGrayColor;
        [self.contentView addSubview:_labTitle];
        
        _labTime = [[UILabel alloc] initWithFrame:CGRectMake(WLScaleX(16), WLScaleX(30), 120, WLScaleX(20))];
        _labTime.font = [WLCommonTool fontTypePingFangSCMedium:11];
        _labTime.textColor = wlLightTextColor;
        [self.contentView addSubview:_labTime];
        
        _labScore = [[UILabel alloc] initWithFrame:CGRectMake(WIDTH_SCREEN_WL-160-WLScaleX(16), WLScaleX(10), 160, WLScaleX(20))];
        _labScore.textAlignment = NSTextAlignmentRight;
        _labScore.font = [WLCommonTool fontTypePingFangSCMedium:14];
        [self.contentView addSubview:_labScore];
        
        _ivArrow = [[UIImageView alloc] initWithFrame:CGRectMake(WIDTH_SCREEN_WL-WLScaleX(16)-9, WLScaleX(20)-7, 9, 14)];
        _ivArrow.image = [UIImage imageNamed:@"arrow_right"];
        [self.contentView addSubview:_ivArrow];
        _ivArrow.hidden = YES;
        
        _labDevice = [[UILabel alloc] initWithFrame:CGRectMake(WIDTH_SCREEN_WL-160-WLScaleX(16), WLScaleX(30), 160, WLScaleX(20))];
        _labDevice.textAlignment = NSTextAlignmentRight;
        _labDevice.font = [WLCommonTool fontTypePingFangSCMedium:11];
        _labDevice.textColor = wlLightTextColor;
        [self.contentView addSubview:_labDevice];
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
